#define _CRT_SECURE_NO_WARNINGS
#include"BSTree.h"

int main()
{
	int a[] = { 8, 3, 1, 10, 6, 4 ,7, 14, 13 };
	//int a[] = { 8, 3, 1, 10, 6, 4, 7, 14, 13,3,5,67,8,3,1,3,5,6,3,4,6 };
	zh::BSTree<int> b;
	for (auto e : a)
	{
		b.Insert(e);
	}
	b.InOrder();
	cout << endl;
	for (auto e : a)
	{
		b.Erase(e);
		b.InOrder();
		cout << endl;
	}

	return 0;
}